package com.dstz.demo.core.manager.impl;

import com.dstz.base.api.query.QueryFilter;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.PCompanyQualificationDao;
import com.dstz.demo.core.manager.PCompanyQualificationManager;
import com.dstz.demo.core.model.PCompanyQualification;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 单位资质 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2019-11-30 16:41:14
 */
@Service("pCompanyQualificationManager")
public class PCompanyQualificationManagerImpl extends BaseManager<String, PCompanyQualification> implements PCompanyQualificationManager {
	@Resource
	PCompanyQualificationDao pCompanyQualificationDao;

	@Override
	public void insertPCompanyQualification(PCompanyQualification pCompanyQualification) {
		pCompanyQualificationDao.create(pCompanyQualification);
	}

	@Override
	public List<PCompanyQualification> selectPCompanyQualification(QueryFilter queryFilter) {
		return pCompanyQualificationDao.query(queryFilter);
	}

	@Override
	public void deletePCompanyQualification(String id) {
		pCompanyQualificationDao.remove(id);
	}

	@Override
	public void updatePDiachronicRecord(PCompanyQualification pCompanyQualification) {
		pCompanyQualificationDao.update(pCompanyQualification);
	}
}
